<template>
    <el-carousel trigger="click" height="450px" style="margin-top: 10px;border-radius: 5px;">
        <el-carousel-item v-for="item in list" :key="item.id">
            <img :src="item.value" alt="">
        </el-carousel-item>
    </el-carousel>
</template>
<script setup>
import { ref, inject } from 'vue';
const request = inject('request')

const list = ref(null)

request.get('/config/list').then(res => {
    list.value = res.data.list
})
</script>
<style scoped>
.el-carousel__item img {
    width: 100%;
    height: 100%;
}

.el-carousel__item:nth-child(2n) {
    background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
    background-color: #d3dce6;
}
</style>